<alert class="alert-msg" ng-repeat="alert in alerts" type="{{alert.type}}" close="closeAlert($index)">{{alert.msg}}
</alert>

<form class="form-horizontal">
    <div class="box box-info">
        <div class="box-header with-border">
            <h3 class="box-title">新增类目</h3>
        </div>
        <div class="box-body">

            <div class="form-group">
                <label class="col-sm-2 control-label">标题</label>

                <div class="col-sm-4">
                    <input type="text" class="form-control" ng-model="forestTitle">
                </div>

                <label class="col-sm-2 control-label">关税</label>

                <div class="col-sm-4">
                    <input type="text" class="form-control" ng-model="tariff">
                </div>

            </div>

            <div class="form-group">
                <label class="col-sm-2 control-label">父亲类目</label>

                <div class="col-sm-4">
                    <select ng-model="forestParentId" class="form-control">
                        <option value="0" selected="selected">无</option>
                        <option ng-repeat="rootForest in rootForestList"
                                value="{{rootForest.id}}">
                            {{rootForest.title}}
                        </option>
                    </select>
                </div>

                <div>

                    <label class="col-sm-2 control-label">类目图片</label>
                    <button class="btn btn-primary" ng-click="addImage()">选择图片</button>
                    <img src="{{forestImage}}" ng-show="forestImage" style="width: 50px"/>
                    <input type="text" ng-model="forestImage" hidden>
                </div>

            </div>

            <button type="submit" class="btn btn-primary" ng-click="addForest()">
                新增
            </button>
        </div>
    </div>
</form>



